﻿@model MvcApplication2.Controllers.UserSettingViewModel
@{
    ViewBag.Title = "UserSetting";
    Layout = "~/Views/Shared/_HomeLayout.cshtml";
}
<h2>
    UserSetting</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")"></script>
<form method="post" class="well form-horizontal">
@Html.ValidationSummary(true)
<fieldset>
    <legend>User</legend>
    @*@Html.HiddenFor(model => model.UserId)*@
    <div class="control-group">
        @Html.LabelFor(model => model.PostedLanguages.Languages, new { @class = "control-label" })
        <div class="controls">
            @Html.CheckBoxListFor(x => x.PostedLanguages.Languages,
                            x => x.AvailableLanguage,
                            x => x.LanguageId,
                            x => x.Description,
                            x => x.SelectedLanguages,
                            Position.Vertical)
        </div>
    </div>
    <legend>Tester Property </legend>
    <div class="control-group">
        @Html.LabelFor(model => model.AcceptTestingRequest, new { @class = "control-label" })
        <div class="controls">
            @Html.EditorFor(model => model.AcceptTestingRequest, new { @class = "input-xlarge" })
            @Html.ValidationMessageFor(model => model.AcceptTestingRequest, null, null)
            <p class="help-block">
                Accetti richieste di test ? (Si per tester)</p>
        </div>
    </div>
    <div class="control-group">
        @Html.LabelFor(model => model.CanRegisterMobileDevice, new { @class = "control-label" })
        <div class="controls">
            @Html.EditorFor(model => model.CanRegisterMobileDevice, new { @class = "input-xlarge" })
            @Html.ValidationMessageFor(model => model.CanRegisterMobileDevice, null, null)
            <p class="help-block">
                Sei in grado di registrare dispositivi mobili tramite webcam ?</p>
        </div>
    </div>
    <div class="control-group">
        @Html.LabelFor(model => model.CanPcScreencast, new { @class = "control-label" })
        <div class="controls">
            @Html.EditorFor(model => model.CanPcScreencast, new { @class = "input-xlarge" })
            @Html.ValidationMessageFor(model => model.CanPcScreencast, null, null)
            <p class="help-block">
                Acconsenti a registrare tramite screencast ?</p>
        </div>
    </div>
    <div class="control-group">
        @Html.LabelFor(model => model.PayPalMail, new { @class = "control-label" })
        <div class="controls">
            @Html.EditorFor(model => model.PayPalMail, new { @class = "input-xlarge" })
            @Html.ValidationMessageFor(model => model.PayPalMail, null, null)
            <p class="help-block">
                Verrano inviati i pagamenti su questa mail</p>
        </div>
    </div>
    <div class="control-group">
        @Html.LabelFor(model => model.PostedDevices.Devices, new { @class = "control-label" })
        <div class="controls">
            @Html.CheckBoxListFor(x => x.PostedDevices.Devices,
                            x => x.AvailableDevices,
                            x => x.DeviceId,
                            x => x.Description,
                            x => x.SelectedDevices,
                            Position.Vertical)
        </div>
        <p class="help-block">
            Device in tuo possesso sul quale puoi provi app.</p>
    </div>
    <div class="form-actions">
        <button class="btn btn-primary">
            Save Changes</button>
        <button class="btn">
            Cancel</button>
    </div>
</fieldset>
</form>
<div>
    @Html.ActionLink("Back to List", null, new { @class = "btn btn-inverse" })
</div>
